{% load custom_tags %}
<div id="finding-{{ finding.id }}" scoring-type="PROACTIVE" class="finding container" finding-severity="{{ finding.severity }}">
    <div class='finding-header'>
        <div class='finding-severity background-color-severity'>
            {{ finding.severity }}
        </div>
        <div class='finding-title'>
            [{{ finding.number }}] {{ finding.name }}
        </div>
    </div>
    <div class='finding-content'>
        <div class='category' style='font-weight: bold'>
            {{ finding.categoryFull }}
        </div>
    </div>
    {% if finding.description %}
        <div class='finding-content'>
            <div class='description'>
                {% markdown finding.description %}
            </div>
        </div>
    {% endif %}
    {% if finding.background %}
        <div class='finding-content'>
            <div class='background'>
                {% markdown finding.background %}
            </div>
        </div>
    {% endif %}
    {% if finding.references %}
        <div class='finding-content'>
            <div class='references'>
                {% markdown finding.references %}
            </div>
        </div>
    {% endif %}
</div>
{% for figure in finding.figures_ending %}
  {% include 'reportTemplates/figure.html' with figure=figure %}
{% endfor %}